#include "stdio.h"
/*
int main ()
{
   int i,j;
   int m = 1;
   for (i = 1;i < 3; i++)
   {
    for (j = 3;j > 0; j--)
    {
        if (i * j > 3)
        break;
        m *= i * j;
    }
   } 
   printf ("m=%d\n",m);
}*/
int main()
{
int a = 1;
int b = 10;
do {
    b -= a;
    a++;
}while (b-- < 0);
printf ("%d",b);

}